<template>
  <div>
  </div>
</template>
<script setup>
import {useRouter} from "vue-router";
import {useStore} from "vuex"
const router = useRouter();
const store = useStore();

// 修改状态管理器中的状态
store.commit("user/change_token", "");
store.commit("user/change_uName", "");
store.commit("user/change_uId", "");
store.commit("user/change_tId", "");
store.commit("user/change_power", "");
// 同步修改本地存储
localStorage.removeItem("userMsg");

router.push("/login");
</script>